//
//  CameraView.m
//  PetAPP
//
//  Created by dllo on 16/1/22.
//  Copyright © 2016年 Yuming. All rights reserved.
//

#import "CameraView.h"

@interface CameraView ()



@end

@implementation CameraView

- (instancetype)initWithFrame:(CGRect)frame {

    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = [UIColor colorWithRed:227/256.0 green:207/256.0 blue:87/256.0 alpha:1];
        self.layer.cornerRadius = 40;
        self.layer.masksToBounds = YES;
        self.layer.borderColor = [UIColor colorWithRed:255/256.0 green:207/256.0 blue:87/256.0 alpha:1].CGColor;
        self.layer.borderWidth = 5;
        
        self.viewOfAdd = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, frame.size.width / 2.5, frame.size.height / 2.5)];
        [self addSubview:_viewOfAdd];
        [_viewOfAdd release];
        self.viewOfAdd.image = [UIImage imageNamed:@"cameraAdd"];
        self.viewOfAdd.center = self.center;
        
    }
    return self;
}

@end
